.class Lcom/example/zsccpsapp/MainActivity$15;
.super Ljava/lang/Thread;
.source "MainActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/zsccpsapp/MainActivity;->mofiypwd()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/zsccpsapp/MainActivity;


# direct methods
.method constructor <init>(Lcom/example/zsccpsapp/MainActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/zsccpsapp/MainActivity$15;->this$0:Lcom/example/zsccpsapp/MainActivity;

    .line 1325
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 20

    .prologue
    .line 1327
    invoke-super/range {p0 .. p0}, Ljava/lang/Thread;->run()V

    .line 1330
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 1331
    .local v5, "msg":Landroid/os/Message;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/zsccpsapp/MainActivity$15;->this$0:Lcom/example/zsccpsapp/MainActivity;

    move-object/from16 v17, v0

    const-string v18, "userinfo"

    invoke-static/range {v17 .. v18}, Lcom/example/zsccpsapp/MainActivity;->access$25(Lcom/example/zsccpsapp/MainActivity;Ljava/lang/String;)V

    .line 1332
    sget-object v17, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v18, "\u63d0\u4ea4\u7528\u6237\u4fee\u6539\u5bc6\u7801\u6570\u636e---"

    invoke-virtual/range {v17 .. v18}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1333
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/zsccpsapp/MainActivity$15;->this$0:Lcom/example/zsccpsapp/MainActivity;

    move-object/from16 v17, v0

    .line 1334
    const-string v18, "userInfo"

    const/16 v19, 0x0

    .line 1333
    invoke-virtual/range {v17 .. v19}, Lcom/example/zsccpsapp/MainActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v11

    .line 1335
    .local v11, "preferences":Landroid/content/SharedPreferences;
    const-string v17, "uid"

    const-string v18, ""

    move-object/from16 v0, v17

    move-object/from16 v1, v18

    invoke-interface {v11, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 1336
    .local v2, "account":Ljava/lang/String;
    const-string v17, "pass"

    const-string v18, ""

    move-object/from16 v0, v17

    move-object/from16 v1, v18

    invoke-interface {v11, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 1337
    .local v10, "password":Ljava/lang/String;
    if-eqz v2, :cond_0

    const-string v17, ""

    move-object/from16 v0, v17

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-eqz v17, :cond_1

    .line 1338
    :cond_0
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1339
    const-string v17, "nologin"

    move-object/from16 v0, v17

    iput-object v0, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1340
    const/16 v17, 0x7

    move/from16 v0, v17

    iput v0, v5, Landroid/os/Message;->arg1:I

    .line 1341
    sget-object v17, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v17

    invoke-virtual {v0, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1409
    :goto_0
    return-void

    .line 1348
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/zsccpsapp/MainActivity$15;->this$0:Lcom/example/zsccpsapp/MainActivity;

    move-object/from16 v17, v0

    # getter for: Lcom/example/zsccpsapp/MainActivity;->myLoginView:Landroid/view/View;
    invoke-static/range {v17 .. v17}, Lcom/example/zsccpsapp/MainActivity;->access$24(Lcom/example/zsccpsapp/MainActivity;)Landroid/view/View;

    move-result-object v17

    .line 1349
    const v18, 0x7f0b0049

    invoke-virtual/range {v17 .. v18}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    .line 1348
    check-cast v9, Landroid/widget/EditText;

    .line 1350
    .local v9, "oldpwd":Landroid/widget/EditText;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/zsccpsapp/MainActivity$15;->this$0:Lcom/example/zsccpsapp/MainActivity;

    move-object/from16 v17, v0

    # getter for: Lcom/example/zsccpsapp/MainActivity;->myLoginView:Landroid/view/View;
    invoke-static/range {v17 .. v17}, Lcom/example/zsccpsapp/MainActivity;->access$24(Lcom/example/zsccpsapp/MainActivity;)Landroid/view/View;

    move-result-object v17

    .line 1351
    const v18, 0x7f0b004a

    invoke-virtual/range {v17 .. v18}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    .line 1350
    check-cast v7, Landroid/widget/EditText;

    .line 1353
    .local v7, "newpwd":Landroid/widget/EditText;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/zsccpsapp/MainActivity$15;->this$0:Lcom/example/zsccpsapp/MainActivity;

    move-object/from16 v17, v0

    # getter for: Lcom/example/zsccpsapp/MainActivity;->myLoginView:Landroid/view/View;
    invoke-static/range {v17 .. v17}, Lcom/example/zsccpsapp/MainActivity;->access$24(Lcom/example/zsccpsapp/MainActivity;)Landroid/view/View;

    move-result-object v17

    .line 1354
    const v18, 0x7f0b004b

    invoke-virtual/range {v17 .. v18}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v14

    .line 1353
    check-cast v14, Landroid/widget/EditText;

    .line 1356
    .local v14, "surepwd":Landroid/widget/EditText;
    invoke-virtual {v9}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v17

    invoke-interface/range {v17 .. v17}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v17

    .line 1357
    const-string v18, "%"

    const-string v19, ""

    invoke-virtual/range {v17 .. v19}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    const-string v18, " "

    const-string v19, ""

    invoke-virtual/range {v17 .. v19}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v8

    .line 1358
    .local v8, "oldpasspword":Ljava/lang/String;
    invoke-virtual {v7}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v17

    invoke-interface/range {v17 .. v17}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v17

    .line 1359
    const-string v18, "%"

    const-string v19, ""

    invoke-virtual/range {v17 .. v19}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    const-string v18, " "

    const-string v19, ""

    invoke-virtual/range {v17 .. v19}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v6

    .line 1360
    .local v6, "newpassword":Ljava/lang/String;
    invoke-virtual {v14}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v17

    invoke-interface/range {v17 .. v17}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v17

    .line 1361
    const-string v18, "%"

    const-string v19, ""

    invoke-virtual/range {v17 .. v19}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    const-string v18, " "

    const-string v19, ""

    invoke-virtual/range {v17 .. v19}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v13

    .line 1363
    .local v13, "surepassword":Ljava/lang/String;
    new-instance v17, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/zsccpsapp/MainActivity$15;->this$0:Lcom/example/zsccpsapp/MainActivity;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/example/zsccpsapp/MainActivity;->m:Lmyapp/MyApp;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v18

    invoke-direct/range {v17 .. v18}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 1364
    const-string v18, "/index.php?ctrl=psuser&action=modify&uid="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    .line 1365
    const-string v18, "&pwd="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, "&oldpwd="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    .line 1366
    const-string v18, "&newpwd="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, "&surepwd="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    invoke-virtual {v0, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    .line 1367
    const-string v18, "&datatype=json"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    .line 1363
    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    .line 1368
    .local v15, "url":Ljava/lang/String;
    sget-object v17, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v18, Ljava/lang/StringBuilder;

    const-string v19, "\u8c03\u7528\u66f4\u65b0\u6570\u636e----------------------------"

    invoke-direct/range {v18 .. v19}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v18

    invoke-virtual {v0, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1369
    invoke-static {v15}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 1370
    .local v12, "str":Ljava/lang/String;
    sget-object v17, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v18, Ljava/lang/StringBuilder;

    const-string v19, "\u8fd4\u56de\u6570\u636e"

    invoke-direct/range {v18 .. v19}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v18

    invoke-virtual {v0, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1373
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v12}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 1375
    .local v4, "json":Lorg/json/JSONObject;
    const-string v17, "error"

    move-object/from16 v0, v17

    invoke-virtual {v4, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    const-string v18, "true"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v17

    if-eqz v17, :cond_2

    .line 1376
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1378
    const-string v17, "msg"

    move-object/from16 v0, v17

    invoke-virtual {v4, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    move-object/from16 v0, v17

    iput-object v0, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1379
    const/16 v17, 0x7

    move/from16 v0, v17

    iput v0, v5, Landroid/os/Message;->arg1:I

    .line 1380
    sget-object v17, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v17

    invoke-virtual {v0, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 1401
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v3

    .line 1403
    .local v3, "e":Lorg/json/JSONException;
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    .line 1404
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1406
    const/16 v17, 0x4

    move/from16 v0, v17

    iput v0, v5, Landroid/os/Message;->arg1:I

    .line 1407
    sget-object v17, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v17

    invoke-virtual {v0, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 1383
    .end local v3    # "e":Lorg/json/JSONException;
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v17, "msg"

    move-object/from16 v0, v17

    invoke-virtual {v4, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v17

    if-eqz v17, :cond_3

    .line 1384
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1385
    const/16 v17, 0x6

    move/from16 v0, v17

    iput v0, v5, Landroid/os/Message;->arg1:I

    .line 1386
    sget-object v17, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v17

    invoke-virtual {v0, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 1390
    :cond_3
    sget-object v17, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v18, "\u8f6c\u6362\u6570\u636e"

    invoke-virtual/range {v17 .. v18}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1392
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/zsccpsapp/MainActivity$15;->this$0:Lcom/example/zsccpsapp/MainActivity;

    move-object/from16 v17, v0

    .line 1393
    const-string v18, "userInfo"

    const/16 v19, 0x0

    .line 1392
    invoke-virtual/range {v17 .. v19}, Lcom/example/zsccpsapp/MainActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v16

    .line 1394
    .local v16, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface/range {v16 .. v16}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v17

    const-string v18, "pass"

    move-object/from16 v0, v17

    move-object/from16 v1, v18

    invoke-interface {v0, v1, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v17

    invoke-interface/range {v17 .. v17}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1396
    sget-object v17, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v18, "\u8fd4\u56de\u6570\u636e\u7ed3\u675f"

    invoke-virtual/range {v17 .. v18}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1397
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1398
    sget-object v17, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v18, "\u5173\u95ed\u63d0\u793a"

    invoke-virtual/range {v17 .. v18}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 1399
    const/16 v17, 0x1c

    move/from16 v0, v17

    iput v0, v5, Landroid/os/Message;->arg1:I

    .line 1400
    sget-object v17, Lcom/example/zsccpsapp/MainActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v17

    invoke-virtual {v0, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1412
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1413
    monitor-exit p0

    return-void

    .line 1412
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
